/**
 * 查找结果需要的js文件/分页
 */

/*************************************分页（刷新分页实例）*******************************************/

layui.use('laypage', function () {
    var laypage = layui.laypage;
    var totalCount=$("#TotalNumber").val();
    var currentPage=$("#page").val();
    //执行一个laypage实例
    laypage.render({
        elem: 'B_Page'
        , count: totalCount
        , limit: 10
        , curr: currentPage //获取起始页
        , first: '首页'
        , last: '尾页'
        , prev: '<em>←</em>'
        , next: '<em>→</em>'
        , skip: true
        , jump: function (obj, first) {
            if (!first) {
                window.location.href="/common/search.do?currentPage="+obj.curr;
            }
        }
    });
});